
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '员工名单管理',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'code_7b01a57e_n6lj',
        name: "{{code_7b01a57e_n6lj}}",
        binding: 'code',
        updateOn: 'blur',
        defaultI18nValue: '编号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    code: FormControl;

    @NgFormControl({
        id: 'name_4dc117c1_kspe',
        name: "{{name_4dc117c1_kspe}}",
        binding: 'name',
        updateOn: 'blur',
        defaultI18nValue: '姓名',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    name: FormControl;

    @NgFormControl({
        id: 'remark_ac7db3d3_wp4b',
        name: "{{remark_ac7db3d3_wp4b}}",
        binding: 'remark',
        updateOn: 'blur',
        defaultI18nValue: '备注',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    remark: FormControl;

    @NgFormControl({
        id: 'state_59aca058_yh2p',
        name: "{{state_59aca058_yh2p}}",
        binding: 'state',
        updateOn: 'blur',
        defaultI18nValue: '状态',
    })
    state: FormControl;

    @NgFormControl({
        id: 'gender_6758f973_mb7w',
        name: "{{gender_6758f973_mb7w}}",
        binding: 'gender',
        updateOn: 'blur',
        defaultI18nValue: '性别',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    gender: FormControl;

    @NgFormControl({
        id: 'countryOrArea_5abb6b97_50tn',
        name: "{{countryOrArea_5abb6b97_50tn}}",
        binding: 'countryOrArea',
        updateOn: 'blur',
        defaultI18nValue: '所属国家或地区',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    countryOrArea: FormControl;

    @NgFormControl({
        id: 'location_17b6eb21_0j6i',
        name: "{{location_17b6eb21_0j6i}}",
        binding: 'location',
        updateOn: 'blur',
        defaultI18nValue: '常驻地',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    location: FormControl;

    @NgFormControl({
        id: 'idNumber_e35b56fb_m1rm',
        name: "{{idNumber_e35b56fb_m1rm}}",
        binding: 'idNumber',
        updateOn: 'blur',
        defaultI18nValue: '身份证号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    idNumber: FormControl;

    @NgFormControl({
        id: 'phoneNumber_46949650_j7yl',
        name: "{{phoneNumber_46949650_j7yl}}",
        binding: 'phoneNumber',
        updateOn: 'blur',
        defaultI18nValue: '手机号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    phoneNumber: FormControl;

    @NgFormControl({
        id: 'department_c3fcfcbe_htrh',
        name: "{{department_c3fcfcbe_htrh}}",
        binding: 'department',
        updateOn: 'blur',
        defaultI18nValue: '部门',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    department: FormControl;

    @NgFormControl({
        id: 'age_1870ddca_yqvj',
        name: "{{age_1870ddca_yqvj}}",
        binding: 'age',
        updateOn: 'blur',
        defaultI18nValue: '年龄',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    age: FormControl;

    @NgFormControl({
        id: 'xl_e276b867_sdih',
        name: "{{xl_e276b867_sdih}}",
        binding: 'xl',
        updateOn: 'blur',
        defaultI18nValue: '学历',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    xl: FormControl;

}